﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SRF.UI.Html
{
    public static class WebViewPageExtensions
    {
        public static bool IsChecked(this System.Web.Mvc.WebViewPage webViewPage, string tagName)
        {
            if (webViewPage.ViewData[tagName] == null)
            {
                return false;
            }
            else
            {
                return webViewPage.ViewData[tagName].ToString() == "true,false";
            }
        }
    }
}
